
import 'package:get/get.dart';

import 'package:luckin_demo/pages/coupon/index.dart';
import 'package:luckin_demo/pages/order/order_confirm.dart';
import 'package:luckin_demo/pages/order/order_remark.dart';
import 'package:luckin_demo/pages/toolbar/index.dart';





import '../pages/diningcode/dining_code.dart';
import '../pages/login/login_mail.dart';
import '../pages/login/user_agreement.dart';
import '../pages/order/order_detail.dart';
import '../pages/order/order_evaluation.dart';
import '../pages/selfstore/index.dart';
import '../pages/storedetail/index.dart';
import '../pages/toolbar/home/index.dart';
import 'app_routes.dart';






class AppPages {

  //其余路由
  static final routes = [
    // toolbar
    GetPage(name: '/', page: () => Toolbar()),
    GetPage(name: AppRoutes.Home, page: () => Toolbar()),
    GetPage(name: '/menu', page: () => Toolbar()),

    GetPage(name: AppRoutes.Order_Confirm, page: () => OrderConfirm(),
        children:[
          GetPage(
            name: AppRoutes.Order_Detail,
            page: () => OrderDetail(),
          ),

        ]
    ),

    GetPage(name: '/self_store', page: () => SelfStore()),
    GetPage(name: '/store_detail', page: () => StoreDetail()),

    //优惠卷
    GetPage(name: '/coupon', page: () => Coupon()),

    GetPage(
      name: AppRoutes.Order_Remark,
      page: () => OrderRemark(),
    ), //备注

    GetPage(
      name: AppRoutes.Order_Evaluation,
      page: () => OrderEvaluation(),
    ), //评价
    GetPage(
        name: '/shopping_cart',
        page: () => Toolbar()
    ),

    GetPage(
        name: AppRoutes.Mine,
        page: () => Toolbar()
    ),

    GetPage(
        name: '/login_mail',
        page: () => LoginMail()
    ),
    GetPage(
        name: AppRoutes.User_Agreement,
        page: () => UserAgreement()
    ),
    GetPage(
        name: AppRoutes.Dining_Code,
        page: () => DiningCode()),


  ];

}

